<?php
//if (!function_exists('auth')) {
//    /**
//     * Auth认证辅助方法
//     * @param string|null $guard
//     * @return \HyperfExt\Auth\Contracts\GuardInterface|\HyperfExt\Auth\Contracts\StatefulGuardInterface|\HyperfExt\Auth\Contracts\StatelessGuardInterface
//     */
//    function auth(string $guard = null)
//    {
//        if (is_null($guard)) $guard = config('auth.default.guard');
//        return make(\HyperfExt\Auth\Contracts\AuthManagerInterface::class)->guard($guard);
//    }
//}